package com.demo.netty.config;

import com.demo.netty.util.CustomEndpoint;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liangliang
 */
@Configuration
public class EndPointConfig {

    @Value("${monitor.channel.map.key}")
    private String channelMap;

    @Bean
    public CustomEndpoint buildEndpoint(){
        System.out.println(channelMap);
        return new CustomEndpoint(channelMap);
    }
}
